<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户登录</title>
	<link rel="stylesheet" href="/css/bootstrap.min.css">
<style type="text/css">
.position{
	margin:0 auto;
	width:20%;
}
</style>
</head>
<body>
	<form action="/user/login" method="post" class="position">
	  <div class="form-group">
	    <label for="exampleInputEmail1">姓名</label>
	    <input type="text" class="form-control" name="username" id="exampleInputEmail1" placeholder="用户名">
	  </div>
	  <div class="form-group">
	    <label for="exampleInputPassword1">密码</label>
	    <input type="password" class="form-control" name="userpwd" id="exampleInputPassword1" placeholder="密码">
	  </div>
	  <div class="form-group">
	    <button type="submit" class="btn btn-default">登录</button>&nbsp;&nbsp;&nbsp;&nbsp;
	    <button onclick="return reg()" class="btn btn-default">没有账号？去注册</button>
	  </div>
	</form>
<script>
	function reg(){
		location.href="/user/reg";
		return false;
	}
</script>
</body>
</html>